package com.auth.manage.domain.convertor;

import com.auth.manage.domain.entity.AuthCode;
import com.auth.manage.domain.vo.AuthCodeVO;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface AuthorizationConvertor {

    AuthorizationConvertor INSTANCE = Mappers.getMapper(AuthorizationConvertor.class);

    AuthCodeVO do2VO(AuthCode authCode);

    List<AuthCodeVO> do2VO(List<AuthCode> authCodes);
}
